<html>
<body>
Service class needs to implement required interface for its tag
<!-- tooltip end -->

<p>
This inspection detects Symfony services that are tagged with interfaces but don't implement
the required interface. In Symfony's dependency injection container, certain tags require
the service class to implement specific interfaces to function correctly.
</p>

<p>
The inspection checks for:
</p>

<ul>
    <li>Services with tags that require specific interfaces</li>
    <li>Service classes that don't implement the required interface for their tag</li>
    <li>Tagged services that would fail at runtime due to missing interface implementation</li>
</ul>

<p>
Example XML service configuration that would trigger this inspection:
</p>

<pre><code>
&lt;services&gt;
    &lt;!-- This will trigger inspection - EventSubscriberInterface is required --&gt;
    &lt;service id="my_subscriber" class="App\Service\MySubscriber"&gt;
        &lt;tag name="kernel.event_subscriber" /&gt;
    &lt;/service&gt;

    &lt;!-- This will trigger inspection - CommandInterface is required --&gt;
    &lt;service id="my_command" class="App\Service\MyTask"&gt;
        &lt;tag name="console.command" /&gt;
    &lt;/service&gt;

    &lt;!-- This is valid - implements required interface --&gt;
    &lt;service id="valid_subscriber" class="App\Event\MyEventSubscriber"&gt;
        &lt;tag name="kernel.event_subscriber" /&gt;
    &lt;/service&gt;
&lt;/services&gt;
</code></pre>

</body>
</html>